﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Thumbnail.aspx.vb" Inherits="Prototype.Thumbnail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        From Thumbnail selection<asp:GridView ID="GridView1" runat="server" 
            AutoGenerateColumns="False" DataKeyNames="VideoId" 
            DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="VideoId" HeaderText="VideoId" ReadOnly="True" 
                    SortExpression="VideoId" />
                <asp:BoundField DataField="Showreel" HeaderText="Showreel" 
                    SortExpression="Showreel" />
                <asp:ImageField DataImageUrlField="Showreel" HeaderText="Showreel">
                    <HeaderStyle CssClass="gridheader" />
                </asp:ImageField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:myPrototypeDatabase %>" 
            ProviderName="<%$ ConnectionStrings:myPrototypeDatabase.ProviderName %>" 
            SelectCommand="SELECT [VideoId], [Showreel] FROM [Video] WHERE ([VideoId] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="VideoId" QueryStringField="VideoId" 
                    Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
        <br />
    </p>
</asp:Content>
